﻿using Common;
using IdentityModel;
using IdentityServer4.Models;
using IdentityServer4.Services;
using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;

namespace Common.Identity
{
    public class CustomIProfileService : IProfileService
    {
        public async Task GetProfileDataAsync(ProfileDataRequestContext context)
        {
            //设置token中具体内容claims
            context.IssuedClaims = context.Subject.Claims.ToList();
        }
        public async Task IsActiveAsync(IsActiveContext context)
        {
        }
    }
}
